﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameBG : MonoBehaviour {
    private Material material;
    void Start()
    {
        material = transform.GetComponent<Renderer>().material;
    }

    void Update()
    {
        if (Const.isgameover)
            return;
        material.mainTextureOffset = new Vector2(0, Time.time * -0.4f);//* 0.4fTime.time
    }
}
